//@ts-ignore
import { createWebHashHistory, createRouter } from 'vue-router'

import Test1 from '../view/test1.vue'
import Test2 from '../view/test2.vue'
import Test3 from '../view/test3.vue'
import Test4 from '../view/test4.vue'

const routes = [
  {
    path: '/',
    redirect: '/test1',
    children:[
      { path: '/test1', component: Test1 },
      { path: '/test2', component: Test2 },
      { path: '/test3', component: Test3 },
      { path: '/test4', component: Test4 },

    ]
  }
]
export default createRouter({
  history: createWebHashHistory(),
  routes,
})